package com.blockchain.securewallet.interfaces;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 对于存在多种值选择的可以使用Annotation
 * <p>
 * Created by Lopez on 2018/6/21.
 */
public interface WalletFields {

    @Retention(RetentionPolicy.SOURCE)
    @IntDef({FAQ.DEFAULT, FAQ.WALLET_CREATE, FAQ.WALLET_RESTORE, FAQ.WALLET_SWITCH, FAQ.PASSWORD_SEED, FAQ.BALANCE_RECEIVE, FAQ.BALANCE_SEND, FAQ.BALANCE_UPDATE, FAQ.ADDRESS_ALL, FAQ.FEE_SET, FAQ.PASSWORD_PAY, FAQ.PASSWORD_GESTURE})
    @interface FAQ {

        //默认 -1
        int DEFAULT = 0xFFFF;

        //账户
        int WALLET_CREATE = 0x00;
        int WALLET_RESTORE = 0x01;
        int WALLET_SWITCH = 0x02;

        //交易
        int BALANCE_RECEIVE = 0x10;
        int BALANCE_SEND = 0x11;
        int BALANCE_UPDATE = 0x12;
        int ADDRESS_ALL = 0x13;
        int FEE_SET = 0x14;

        //安全
        int PASSWORD_SEED = 0x20;
        int PASSWORD_PAY = 0x21;
        int PASSWORD_GESTURE = 0x22;

    }

}
